{% extends 'base/base.html' %}
{% block title %}
    <title>用户登录</title>
{% endblock %}
{% block top %}
{% endblock %}
{% block container %}
    <div class="row">
    <div class="col-md-4 col-md-offset-4">
        <form action="{{ url_for('login') }}" method="post">
        {{ form.csrf_token }}
            <h3>欢迎登录后台管理系统</h3>
            <div class="form-group">
            {{ form.username.label }}
            {{ form.username }}
            </div>
            <div class="form-group">
            {{ form.password.label }}
            {{ form.password }}
            </div>
            <button type="submit" class="btn btn-default">登录</button>
            {% for err in form.errors %}
            <p>{{ err }}</p>
            {% endfor %}
        </form>
    </div>
    </div>

{% endblock %}